package com.zhiyou100.service;

import com.zhiyou100.entity.ResponseJson;
import com.zhiyou100.entity.TabUser;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 杨磊
 * @since 2020-10-09
 */
public interface ITabUserService extends IService<TabUser> {
    /**
     * 登陆服务类
     * @param name 用户名
     * @param pwd 密码
     * @param request request 域
     * @return 响应
     */
    ResponseJson<Object> login(String name, String pwd, HttpServletRequest request);

    /**
     * 登出
     * @param uid 用户 id
     * @param request 域
     * @return 响应
     */
    ResponseJson<Object>logout(Integer uid,HttpServletRequest request);
}
